package com.huabo.system.service.impl;

import com.huabo.system.mysql.entity.TblBiChartMySql;
import com.huabo.system.mysql.mapper.TblBiChartMySqlDao;
import com.huabo.system.oracle.entity.TblBiChart;
import com.huabo.system.oracle.mapper.TblBiChartDao;
import com.huabo.system.service.TblBiChartService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("TblBiChartService")
@Slf4j
public class TblBiChartServiceImpl implements TblBiChartService {

    @Resource
    private TblBiChartDao tblBiChartDao;

    @Resource
    private TblBiChartMySqlDao tblBiChartMySqlDao;

    @Override
    public void add(TblBiChart biChart) {
        tblBiChartDao.insertBichart(biChart);
    }

    @Override
    public void addMySql(TblBiChartMySql biChartMySql) {
        tblBiChartMySqlDao.insertBichart(biChartMySql);
    }
}
